/*
 * $Id$
 */
package corejs.parser;

import corejs.Token;
import corejs.expr.Expression;

import corejs.expr.SequenceExpr;

/**
 *
 * @author myang
 */
public class SequenceParser implements InfixParser {

   @Override
   public SequenceExpr expr(final PrattParser parser, 
                            final Expression left, final Token tk) {
      return new SequenceExpr(left, parser.expr());
   }

   @Override
   public int getPrecedence() {
      return Precedence.SEQUENCE;
   }
}
